import { createRouter, createWebHistory, createWebHashHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  // history: createWebHistory(import.meta.env.BASE_URL),
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: () => import('../views/HomeView.vue')
    },
    {
      path: '/form',
      name: 'form',
      component: () => import('../views/form.vue')
    },
  ]
})
import { showToast } from 'vant'
router.beforeEach((to, from, next) => {
  next()
})
export default router
